package com.expert.miniapp.service;

import java.util.Map;

/**
 * WechatService - 微信服务接口
 * 用于调用微信API
 *
 * @author System
 * @since 2025-01-14
 */
public interface WechatService {

    /**
     * 通过code换取OpenID和SessionKey
     *
     * @param code 微信登录凭证
     * @return 包含openid和session_key的Map
     * @throws Exception 调用微信API失败时抛出异常
     */
    Map<String, String> code2Session(String code) throws Exception;
}
